hackerrank dot and cross problem solution